package cn.apestar.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 审核枚举
 * 
 * @author lvh
 * @version 版本号：V1.0
 */
public enum AuditStateEnum {
    /**
     * 等待审核
     */
    TG_DD(Long.parseLong("1"), "等待审核"),

    /**
     * 审核通过
     */
    TG_TG(Long.parseLong("2"), "审核通过"),

    /**
     * 审核不通过
     */
    TG_NG(Long.parseLong("3"), "审核不通过");

    private Object code;

    private String name;

    AuditStateEnum(Long code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getValue() {

        // TODO Auto-generated method stub
        return code.toString();
    }

    public Long getLongValue() {

        // TODO Auto-generated method stub
        return (Long) code;
    }

    public String getName() {

        // TODO Auto-generated method stub
        return name;
    }

    /**
     * 返回该对象的MAP
     * 
     * @return MAP集合
     */
    public Map getMap() {

        Map m = new HashMap();
        m.put("type_id", code);
        m.put("type_name", name);
        return m;
    }

}